trigger fulfillmentTaskAssignTrigger on Fulfillment_Task__c (before insert) 
{
    for(Fulfillment_Task__c ft : Trigger.new) 
    {           
        try
        {                                 
            if (ft.RecordTypeId == RecordTypeHelper.GetRecordTypeID('Fulfillment_Task__c','Billing'))
            {
                User newOwner;
                newOwner = [select Id,Name from User where Name = 'Charnette Hildreth'];
                ft.Owner__c = newOwner.Id;
            }
            else if (ft.RecordTypeId == RecordTypeHelper.GetRecordTypeID('Fulfillment_Task__c','Art/Image Production'))
            {
                Opportunity o;
                o = [select Ad_Production_Rep__c from Opportunity where Id = :ft.Opportunity__c];
    
                User newOwner;
                newOwner = [select Id,Name from User where Name = :o.Ad_Production_Rep__c];
                ft.Owner__c = newOwner.id;                
            }
            else 
            {
                Opportunity o;
                o = [select Sales_Support_Rep__c from Opportunity where Id = :ft.Opportunity__c];
                
                User newOwner;
                newOwner = [select Id,Name from User where Name = :o.Sales_Support_Rep__c];
                ft.Owner__c = newOwner.id;                
            }
        }
        catch(Exception e) 
        {      
            CommonUtils.SendErrorNotification(e, 'fulfillmentTaskAssignTrigger');  
        }      
    }
}